package com.ruoyi.finance.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.finance.mapper.ERechargeMapper;
import com.ruoyi.finance.domain.ERecharge;
import com.ruoyi.finance.service.IERechargeService;

/**
 * 充值记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-11-24
 */
@Service
public class ERechargeServiceImpl implements IERechargeService 
{
    @Autowired
    private ERechargeMapper eRechargeMapper;

    /**
     * 查询充值记录
     * 
     * @param id 充值记录主键
     * @return 充值记录
     */
    @Override
    public ERecharge selectERechargeById(Integer id)
    {
        return eRechargeMapper.selectERechargeById(id);
    }

    /**
     * 查询充值记录列表
     * 
     * @param eRecharge 充值记录
     * @return 充值记录
     */
    @Override
    public List<ERecharge> selectERechargeList(ERecharge eRecharge)
    {
        return eRechargeMapper.selectERechargeList(eRecharge);
    }

    /**
     * 新增充值记录
     * 
     * @param eRecharge 充值记录
     * @return 结果
     */
    @Override
    public int insertERecharge(ERecharge eRecharge)
    {
        return eRechargeMapper.insertERecharge(eRecharge);
    }

    /**
     * 修改充值记录
     * 
     * @param eRecharge 充值记录
     * @return 结果
     */
    @Override
    public int updateERecharge(ERecharge eRecharge)
    {
        return eRechargeMapper.updateERecharge(eRecharge);
    }

    /**
     * 批量删除充值记录
     * 
     * @param ids 需要删除的充值记录主键
     * @return 结果
     */
    @Override
    public int deleteERechargeByIds(Integer[] ids)
    {
        return eRechargeMapper.deleteERechargeByIds(ids);
    }

    /**
     * 删除充值记录信息
     * 
     * @param id 充值记录主键
     * @return 结果
     */
    @Override
    public int deleteERechargeById(Integer id)
    {
        return eRechargeMapper.deleteERechargeById(id);
    }
}
